
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/css/NewTopFoot.css" rel="Stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/css/AddItemPanel.css">
<link type="text/css" id="styleName" rel="stylesheet" href="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/css/blue/color.css"/ >    

<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/jQuery.Extend.js"></script>
<script src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/jQuery.Drag.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/jquery.cookies.2.1.0.min.js"></script>
<script src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/Gobal.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/wdggcGobal.js"></script>
<link type="text/css" rel="stylesheet" href="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/css/changeEmail.css">


    <style type="text/css">
    #ad20100727{z-index:100;display:none;moz-opacity:0.56;opacity: 0.56; filter:alpha(opacity=56); height:40px;background:#fff url(templates/default/images/footlayer.jpg) repeat-x 0 0;position:fixed;_position:absolute;bottom:0;border-top:#5BB6D0 solid 2px;left:0;right:0;width:100%;}
.gg_close{width:15px;right:10px;margin:5px 0 -100px 0;background:url(templates/default/images/1000912.gif) no-repeat center 2px;height:15px;position:absolute;z-index:100;}
.gg_img{float:left;position:fixed;_position:absolute;bottom:0;background:;z-index:8;width:950px;height:40px;cursor:pointer;}
.gg_img span{height:40px;width:950px;display:block;}
.zd_hf{position:fixed;_position:absolute;margin-left:-475px;left:50%;height:40px;width:950px;bottom:0;z-index:110;display:none;}
    </style><title>修改Email -77代购</title></head>

<body>

<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/front/js/colorbox/jquery.colorbox.js"></script>
<link rel="stylesheet" media="all" type="text/css" href="<?php echo $this->url->getBaseUri() ?>public/front/js/colorbox/colorbox.css" />
<?php $this->partial('common/banner');?>
    
    <div class="admin">
        <div class="ding">
            <div class="shouye">
                <a href="m.php" title="个人中心">我的会员中心</a>
            </div>
            <div class="lb">
               <div class="weizhi">
                      <b>当前位置：</b><a href="m.php">个人中心</a><span>&gt;</span>修改电话号码
                  </div>
                
  <?php $this->partial('common/left');?>
<script type="text/javascript"> 
//左边样式切换
$(function() {
    var b = document.location.search.substr(1);
    b = b.toLowerCase();
function GetValue(search,index)
{
try
{
var url = search;// document.location.search.substr(1);
var x = url.split("&");
var v = x[index].split("=")[1];
return v;
}
catch(e)
{
return "";
}
}
b = GetValue(b,0);
if(b!=""){
$("#"+b).addClass("xz");
}
});


</script>
  


<form id="aspnetForm" action="m.php?name=changephone&action=save" method="post" name="aspnetForm">


    <div class="fill">
<div class="buzhou" style="display:none">
<img alt="修改E-mail第一步" src="<?php echo $this->url->getBaseUri() ?>public/front/templates/default/images/e_1.gif">
<script type="text/javascript">
   
    function getverifycode() {
var phonenum = $.trim($("#regPhoneTxt").val());
$.ajax({
type: "POST",
url: "/ajax/user_ajax.php?action=getverifycode&phone=" + phonenum,
dataType: "json",
contentType: "application/json;utf-8",
data: "{'phone':'" + phonenum + "'}",
timeout: 5000,
error: function(a, b, c) { checkcodechecked = true; },
success: function(msg) {
if (msg=="OK") {

}
else {
alert(msg);
}
}
});

}


function phoneblur(dom) {
var phone = $(dom).val();

if ($.trim(phone).length <= 0) { $(dom).attr("class", "").val("").next("p").attr("class", ""); $("#getcode").attr("style","margin-left:10px;height:30px;width:90px;float:left;display:none");}
else {
        var reg = new RegExp("^6\\d{10}");
        if (reg.test($(dom).val())) {
$.ajax({
                type: "POST",
                url: "/ajax/user_ajax.php?action=checkphone",
                dataType: "json",
                contentType: "application/json;utf-8",
                data: "{'phone':'" + phone + "'}",
                timeout: 10000,
                error: function(a, b, c) {  $(dom).attr("class", "").next("p").attr("class", ""); },
                success: function(msg) {
//alert(msg);
if(msg=="OK")
{
$(dom).attr("class", "").next("p").attr("class", "").text("");
$("#getcode").attr("style","margin-left:10px;height:30px;width:90px;float:left;display:block");
}
else
{
$(dom).attr("class", "wrong").next("p").attr("class", "red").text(msg);
$("#getcode").attr("style","margin-left:10px;height:30px;width:90px;float:left;display:none");
}
                }
            });
        }
        else {
            $(dom).attr("class", "wrong").next("p").attr("class", "red").text("此服务只提供给马来西亚电话。");
$("#getcode").attr("style","margin-left:10px;height:30px;width:90px;float:left;display:none");
        }
    }
}

function ClearnAll() {
        if (confirm("重新填写将清空表单,确定要重填吗?")) {
            $("#regPhoneTxt").val("").attr("class", "").next("p").attr("class", "").html("");
            $("#regCodeTxt").val("").attr("class", "").next("p").attr("class", "").html("");
            
        }
    }

function SubmitForm() {
        
         var checkCode = $.trim($("#regCodeTxt").val()).toLowerCase();
         if (checkCode == "") {
             $(dom).nextAll("p").html("请输入电话中的验证码"); 
         }
         else {
             $("form")[0].submit();
         }
    }
</script>
<script type="text/javascript"> 
var timer = null;
var i = 60;
function aa(){
$('#getcode').removeAttr('disabled').css('cursor','pointer');
}
function bb(){
$('#getcode').html('稍等'+i+'秒');
i--;
if(i<0){
$('#getcode').html('获取验证码');
clearInterval(timer);
i=5;
}
}
$(function(){
$('#getcode').click(function(){
$(this).attr('disabled','disabled').css('cursor','default');
bb();
clearInterval(timer);
timer=setInterval('bb()',1000);
setTimeout("aa()",1000*60);
})
})
</script> 
</div>
<div class="biao">
<table>
  <tbody><tr>
<td class="z">手机号码：</td>
<td>60127462195</td>
  </tr>
  
  <tr>
<td class="z">新的电话号码：</td>
<td>
<input type="text" value="" onBlur="phoneblur(this);"  maxlength="80" id="regPhoneTxt" name="regPhoneTxt">

<p>请您确认新电话号码</p>
<button type="button" id="getcode" onclick="getverifycode()" name=""
                                            style="margin-left:10px;height:30px;width:90px;float:left;display:none">获取验证码 </button>
</td>
  </tr>
  <tr>
<td class="z">验证码：</td>
<td><input type="text" id="regCodeTxt" name="regCodeTxt">
                        <p id="checkCode">请输入电话中的验证码</p></td>
  </tr>
  
</tbody></table>
</div>
<div class="tijiao"><input type="button" onClick="aspnetForm.submit()" value="确认修改" name="commit" class="">
<a onClick="ClearnAll()" style="cursor: pointer;">[重新填写]</a></div>
</div>


        <div class="yj">
        </div>
    </div>
    </form>
    <?php $this->partial('common/bottom');?>
</body>
</html>